import request from "@/utils/request";
// get  https://www.dance365.com/apis/promotion/ads/search/findByPosition?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&position=pc_mainpage
export interface TimeModel {
    endTime: number,
    startTime: number
}
export type PositionDetailModel = TimeModel[];

export interface CarouselModel {
    appAdvertiseUrl: string,
    createTime: number,
    creator: string,
    id: string,
    link: string,
    linkMomentId: string,
    linkMomentSummary: string,
    pcAdvertiseUrl: string,
    position: string,
    PositionDetailModel: [],
    title: string,
    updateTime: number,
    videoDuration: null
}

export default {
    getCarousel(token='a06d730e-f1c5-43ab-894b-59ee3b3330c0&position=pc_mainpage') {
       return request.get(`/promotion/ads/search/findByPosition?access_token=${token}`)
    }
}

